Not sure if this is going to be fixed by #241759: Better date filter but I ran into this and didn't see any other issues in the queue about this bug, so I wanted to report it.

If you have a filter that's using views_handler_filter_date, and you choose one of the operators that deal with NULL (either "Is empty (NULL)" or "Is not empty (NULL)", when you try to update the filter preferences to save them, you get validation errors on two fields that aren't visible. See attached screenshot.

Comments

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new776 bytes

Briefly debugged this and it's a pretty trivial fix. Basically, in validate_valid_time(), $operators[$operator]['values'] can be either 0, 1, or 2. The existing code was written to assume only 1 or 2.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed. THanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.